import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str=in.nextLine();
       level(str);
    }
    public static void level(String str){
        //总分=长度分数+字母分数+数字分数+符号分数+奖励
        int length=length(str);//长度
        int letters=letters(str);//字母
        int numbers=numbers(str);//数字
        int symbols=symbols(str);//符号
        int rewards=rewards(str);//奖励
        int sum=length+letters+numbers+symbols+rewards;

        if(sum>=90){
            System.out.println("VERY_SECURE");
        } else if (sum>=80) {
            System.out.println("SECURE");
        } else if (sum>=70) {
            System.out.println("VERY_STRONG");
        } else if (sum>=60) {
            System.out.println("STRONG");
        }else if (sum>=50){
            System.out.println("AVERAGE");
        } else if (sum>=25) {
            System.out.println("WEAK");
        }else {
            System.out.println("VERY_WEAK");
        }
    }

    private static int rewards(String str) {
        int letters=letters(str);
        int numbers=numbers(str);
        int symbols=symbols(str);
        if(letters>0&&numbers>0&&symbols==0){
            return 2;
        }
        if (letters==10&&numbers>0&&symbols>0){
            return 3;
        }
        if(letters==20&&numbers>0&&symbols>0){
            return 5;
        }
        return 0;
    }

    private static int symbols(String str) {
        int count=0;
        for (int i = 0; i < str.length(); i++) {
            if(str.charAt(i)>=0x21&&str.charAt(i)<=0x2f||
            str.charAt(i)>=0x3a&&str.charAt(i)<=0x40||
                    str.charAt(i)>=0x5b&&str.charAt(i)<=0x60||
                    str.charAt(i)>=0x7b&&str.charAt(i)<=0x7e){
                count++;
            }
        }
        if(count==0){
            return 0;
        }
        if (count==1){
            return 10;
        }
        return 25;
    }

    private static int numbers(String str) {
        int count=0;
        for (int i = 0; i < str.length(); i++) {
            if(str.charAt(i)>='1'&&str.charAt(i)<='9'){
                count++;
            }
        }
        if(count==0){
            return 0;
        }
        if (count==1){
            return 10;
        }
        return 20;
    }

    private static int letters(String str) {
        int count1=0;//大写
        int count2=0;//小写
        for (int i = 0; i < str.length(); i++) {
            if(str.charAt(i)>='a'&&str.charAt(i)<='z'){
                count2++;
            }
            if(str.charAt(i)>='A'&&str.charAt(i)<='Z'){
                count1++;
            }
        }
        if(count1==0&count2==0){
            return 0;
        }
        if(count1!=0&&count2!=0){
            return 20;
        }
        return 10;
    }

    private static int length(String str) {
        if(str.length()<5){
            return 5;
        } else if (str.length()<8) {
            return 10;
        }else {
            return 25;
        }
    }
}